home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UStatDynArray.h < prev    next >
Encoding:
Text File  |  1994-02-20  |  811 b   |  33 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UStatDynArray.h
  3.  
  4. #define __USTATDYNARRAY__
  5.  
  6. #ifndef __UDYNDYNARRAY__
  7. #include "UDynDynArray.h"
  8. #endif
  9.  
  10. class PStatDynArray : public PDynDynArray
  11. {
  12.     public:
  13.         virtual void DoRead(TStream *aStream);
  14.         virtual void DoWrite(TStream *aStream);
  15.         virtual long NeededDiskSpace();
  16.         
  17.         virtual ArrayIndex CreateNewElement(ArrayIndex size);
  18.         virtual void DeleteElementAt(ArrayIndex index);
  19.         virtual void DeleteAll();
  20.         
  21.         virtual Boolean EntryIsFree(ArrayIndex index);
  22.  
  23.         virtual void DebugDump(Boolean verbose);
  24.         virtual Boolean SanityCheck();
  25.         
  26.         PStatDynArray();
  27.         virtual void IStatDynArray(long allocChunk, long maxFreeElementDiff);
  28.         ~PStatDynArray();
  29.     protected:
  30.         TSortedLongintList *fFreeEntriesList;
  31.         long fMaxFreeElementDiff;
  32. };
  33.